<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>展示页面</title>
</head>
<body>

<a href="add.html">添加</a> <hr color="red">
<table width="70%" border="1px">
    <tr>
        <td>编号</td>
        <td>名称</td>
        <td>数量</td>
        <td>是否显示</td>
        <td>操作</td>
    </tr>
    <tr th:each="c : ${list}">
        <td th:text="${c.id}"></td>
        <td th:text="${c.name}"></td>
        <td th:text="${c.goodsNum}"></td>
        <td th:text="${c.isShow==1}?'是':'否'"></td>
        <td>
            <a th:href="@{/del(id=${c.id})}">删除</a>
            <a th:href="@{/findById(id=${c.id})}">修改</a>
        </td>
    </tr>

</table>




</body>
</html>